package com.joysuch.wwyt.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.core.entity.BaseManageType;

import java.util.List;

public interface BaseManageTypeMapper extends BaseMapper<BaseManageType> {
    int deleteByPrimaryKey(Long id);

    int insertSelective(BaseManageType record);

    BaseManageType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseManageType record);

    int updateByPrimaryKey(BaseManageType record);

    BaseManageType checkRepeat(Long departId, Long manageTypeDictionaryCode);

    IPage<BaseManageType> selectByDepartId(Page<BaseManageType> page, Long departId);

    void deleteBatch(List<Long> list);

    List<BaseManageType> findByDepartId(Long departId);
}